﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Produce.Infrastructure.Migrations
{
    public partial class 重开 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Breeding",
                columns: table => new
                {
                    BreedId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Earbugles = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    ServiceRam = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    HybridizationType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    SpeciesEstrusType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    BreedingScore = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CurrentBuilding = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CurrentField = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    OriginallyDorm = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    OriginallyColumns = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    ReproductiveState = table.Column<bool>(type: "bit", nullable: false),
                    EventDate = table.Column<DateTime>(type: "datetime2", maxLength: 50, nullable: true),
                    Weight = table.Column<int>(type: "int", nullable: false),
                    Head = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    BreedingDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Breeding", x => x.BreedId);
                });

            migrationBuilder.CreateTable(
                name: "ShiftDorm",
                columns: table => new
                {
                    SDId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Earbugles = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    DormName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    ColumnsName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Breed = table.Column<int>(type: "int", nullable: false),
                    Sex = table.Column<bool>(type: "bit", nullable: false),
                    OriginallyDorm = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    OriginallyColumns = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    TransferDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    SheepType = table.Column<int>(type: "int", nullable: false),
                    TransferType = table.Column<int>(type: "int", nullable: false),
                    CreateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ShiftDorm", x => x.SDId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Breeding");

            migrationBuilder.DropTable(
                name: "ShiftDorm");
        }
    }
}
